
package br.siseventos.service;

import br.siseventos.dao.ServicoDao;
import br.siseventos.model.TbServico;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;


public class ServicoService extends BaseService {
    
    // Campos
    private ServicoDao servicoDao = new ServicoDao();
    
    // Construtor
    public ServicoService() {
    }
    
    // Serviço
    @Transactional
    public List<TbServico> consultarTodos(){
        List<TbServico> s = null;
        try {
            s = servicoDao.consultarTodos();
        } catch (Exception e) {
        }
        return s;
    }
    
    @Transactional
    public TbServico consultar(int id){
        TbServico s = null;
        try {
            s = servicoDao.consultar(id);
        } catch (Exception e) {
        }
        return s;
    }
}
